var url_m3u8 = '';
$(function () {
    $("#btn-click").click(function () {
        url_m3u8 = $("#input-url").val();
        if (url_m3u8.endsWith("m3u8")) {
            console.log("---redirectUrl-->" + chrome.extension.getURL('player.html') + "#" + url_m3u8)
            var playerUrl = chrome.extension.getURL('player.html') + "#" + url_m3u8;
            chrome.tabs.create({ url: playerUrl });
        }
    })
});

